Authorware Article

Eye Candy for Authorware, Part 2: Integrating the Graphics


Table of Contents

  1. Introduction
  2. Setting up the File Properties
  3. Adding the Real Buttons
  4. Adding the Windows Control Treeview
  5. Setting Up the Crumb Trail
  6. Adding the Fake Buttons

Adding the Windows Control Treeview

Now you're going to set up a Call and Return subroutine for the TreeView control that will display the menu. The reason for this is that you want the Treeview to pop up when you click the button and to go away when you navigate to another page, click anywhere else, or make a selection from the menu. By using a Call and Return Subroutine, you get the pause so that the user can make a selection, but navigating away from the current page will also erase the control. Use the following steps to do this.

  1. Add a second Framework icon below the first, and add a Map to it to hold your subroutine.

    Adding a second Framework icon to the flowline and adding a Map icon to it to hold the subroutine

    Figure 25. Adding a second Framework icon to the flowline and adding a Map icon to it to hold the subroutine

  2. Inside your Menu button response map, add a Navigate icon set as a call and return to the Menu Subroutine. Optionally, you can add code to uncheck and recheck the Menu button.

    Adding a Navigation icon as a call and return to the Menu Subroutine

    Figure 26. Adding a Navigation icon as a call and return to the Menu Subroutine

  3. Add the code in figure 27 inside the Menu Subroutine to catch and react to the user's response.

    Adding code to the Menu Subroutine to catch and react tot eh user’s response

    Figure 27. Adding code to the Menu Subroutine to catch and react tot eh user’s response

I am not going to get too far into the specifics of the code in figure 27, because this tutorial is about how to integrate graphics into Authorware for best effect, not about coding subroutines. However, since the Treeview itself is a graphic element, the code that sets it up looks something like this:

The code that sets up the Treeview graphic element

(+) View larger

Figure 28. The code that sets up the Treeview graphic element